import request from "@/utils/request";

export const loginApi = (data) => {
  return request.post("/user-service/user/login", data);
};

export const codeApi = (clientToken) => {
  return request({
    url: `/user-service/user/imageCode/${clientToken}`,
    method: "GET",
    responseType: "blob",
  });
};

export const maintenanceApi = (params) =>
  request({
    url: `/task-service/task/search`,
    params,
  });
